package com.ruoyi.reception;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.IdWorker;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.receipt.domain.TbCaManager;
import com.ruoyi.receipt.service.ITbCaManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 密保录入Controller
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
@RestController
@RequestMapping("/reception/caManager")
public class TbCaManagerRecController extends BaseController
{
    @Autowired
    private ITbCaManagerService tbCaManagerService;

    @Autowired
    private IdWorker idWorker;

    /**
     * 查询密保录入列表
     */
    @GetMapping("/list")
    public TableDataInfo list(TbCaManager tbCaManager)
    {
        List<TbCaManager> list = tbCaManagerService.selectTbCaManagerList(tbCaManager);
        return getDataTable(list);
    }

}
